﻿using Stee.CAP8.MessageBus.Message;
using Stee.CAP8.MessageBus.Message.Orders;
using System;
using System.Collections.Generic;
using System.Text;

namespace test.kafka.usercode
{
    public class OrderHandler : IEventHandler<OrderCreationEvent>
    {
        public IBus Bus { get; set; }
        public OrderHandler()
        {

        }

        public void Handle(OrderCreationEvent evtArgs)
        {
            Console.WriteLine(evtArgs.Body);
            Console.WriteLine("开始创建订单");
        }
    }
}
